package cn.stylefeng.guns.modular.system.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 采购表
 * </p>
 *
 * @author stylefeng
 * @since 2019-06-24
 */
@TableName("fruit_procurement")
public class FruitProcurement implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private long Id;

    /**
     * 名称
     */
    @TableField("name")
    private String Name;

    /**
     * 单价
     */
    @TableField("uprice")
    private String uprice;

    /**
     * 重量
     */
    @TableField("weight")
    private String Weight;

    /**
     * 品相
     */
    @TableField("phase")
    private String Phase;

    /**
     * 量级
     */
    @TableField("grade")
    private String Grade;

    /**
     * 件数
     */
    @TableField("number")
    private Integer Number;

    /**
     * 总价格
     */
    @TableField("tprice")
    private String tprice;

    /**
     * 采购人员
     */
    @TableField("personnel")
    private Long Personnel;

    /**
     * 时间
     */
    @TableField(value = "time", fill = FieldFill.INSERT)
    private Date Time;

    /**
     * 费用
     */
    @TableField("cost")
    private String Cost;

    /**
     * 详细地址
     */
    @TableField("address")
    private String Address;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public long getId() {
        return Id;
    }

    public void setId(long id) {
        Id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getUprice() {
        return uprice;
    }

    public void setUprice(String uprice) {
        this.uprice = uprice;
    }

    public String getWeight() {
        return Weight;
    }

    public void setWeight(String weight) {
        Weight = weight;
    }

    public String getPhase() {
        return Phase;
    }

    public void setPhase(String phase) {
        Phase = phase;
    }

    public String getGrade() {
        return Grade;
    }

    public void setGrade(String grade) {
        Grade = grade;
    }

    public Integer getNumber() {
        return Number;
    }

    public void setNumber(Integer number) {
        Number = number;
    }

    public String getTprice() {
        return tprice;
    }

    public void setTprice(String tprice) {
        this.tprice = tprice;
    }

    public Long getPersonnel() {
        return Personnel;
    }

    public void setPersonnel(Long personnel) {
        Personnel = personnel;
    }

    public Date getTime() {
        return Time;
    }

    public void setTime(Date time) {
        Time = time;
    }

    public String getCost() {
        return Cost;
    }

    public void setCost(String cost) {
        Cost = cost;
    }

    public String getAddress() {
        return Address;
    }

    public void setAddress(String address) {
        Address = address;
    }

    @Override
    public String toString() {
        return "FruitProcurement{" +
                "Id=" + Id +
                ", Name='" + Name + '\'' +
                ", uprice='" + uprice + '\'' +
                ", Weight='" + Weight + '\'' +
                ", Phase='" + Phase + '\'' +
                ", Grade='" + Grade + '\'' +
                ", Number=" + Number +
                ", tprice='" + tprice + '\'' +
                ", Personnel=" + Personnel +
                ", Time=" + Time +
                ", Cost='" + Cost + '\'' +
                ", Address='" + Address + '\'' +
                '}';
    }
}